//
//  WBTestViewController.swift
//  weibo
//
//  Created by 胡古古 on 2017/6/4.
//  Copyright © 2017年 hugugu. All rights reserved.
//

import UIKit

class WBTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.white
        
        addPushButton()
        
    }
    
    private func addPushButton() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(target: self, action: #selector(clickButton), title: "Push")
    }
    
    @objc private func clickButton() {
        
        let testVC = WBTestViewController()
        
        self.navigationController?.pushViewController(testVC, animated: true)
        
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
